<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title><s:property value='%{getText("role_edit_title")}' /></title>
	<link href="/SCMDB/style/SuperEdit.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/SCMDB/js/Super.js"></script>	
	<script type="text/javascript" src="/SCMDB/shifts/shifts.js"></script>
<script type="text/javascript" src="/SCMDB/js/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="/SCMDB/js/jquery-1.4.2.js"></script>
</head>
<body>
<div class="main">
<s:form action="shiftsAction!editShifts.action" method="post" theme="simple" onsubmit="return false;">
   <!-- 主体开始 -->
    <P id="showMsg" style="color:red;padding:0px;margin:0px"></P>
   <table border="0" cellpadding="1" cellspacing="1" class="tableModify">
      <s:hidden name="entity.shiftId"></s:hidden>
     
	  <tr>
	    <th> <s:property value='%{getText("s_new_name")}' />： </th>
	    <td><s:textfield name="entity.name" title="名称"></s:textfield><input type="hidden" value="must-input"/><img src="/SCMDB/images/add.gif" class="delImg" onclick="addObj()" title="添加" />
	    </td>
	  </tr>
	  <tr>
	    <th><s:property value='%{getText("s_new_classset")}' /> </th>
	    <td>
	    <div id="ctDiv">
		  <s:iterator id="shiftsDetails" value="entity.listShiftsDetails" >
		    <p id="ctP${shiftsDetails.id}" >
		      <input type="text"  name="entity.detail"  value="${shiftsDetails.name}" title="班次详细设置"/>
		      <input type="hidden" value="must-input"/>：
		      <input type="text" name="entity.startTime"  value="${shiftsDetails.beginTime}" title="开始时间" class="Wdate" id="d414" onfocus="WdatePicker({dateFmt:'HH:mm'})"/>
		      <input type="hidden" value="must-input"/>
		      ~
		      <input type="text" name="entity.endTime" value="${shiftsDetails.endTime}" title="开始时间" class="Wdate" id="d414" onfocus="WdatePicker({dateFmt:'HH:mm'})"/>
		      <input type="hidden" value="must-input"/><img src='/SCMDB/images/del.gif' class='delImg' onclick='delShiftsDetails("ctP${shiftsDetails.id}","ctDiv","${shiftsDetails.id}")' title='删除' />
		    </p>
		  </s:iterator>
	    </div>
	    </td>
	  </tr> 
	  <tr>
	    <th> <s:property value='%{getText("s_kuantian")}' /> </th>
	    <td><div class="right"><s:radio list="#{'0':'否','1':'是'}" name="entity.isCorssDay"></s:radio></div>
	    </td>
	  </tr>	  
	</table> 
  </s:form>
</div>
</body>
</html>

